﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Entidades="clr-namespace:BancoSim.Entidades.Entidades;assembly=BancoSim.Entidades" xmlns:Forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" xmlns:Controles="clr-namespace:BancoSim.Controles" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" mc:Ignorable="d" x:Class="BancoSim.Ventanas_Modales.cwAgregarGrupo"
        Title="cwAgregarProceso" WindowStartupLocation="CenterScreen" Height="260" Width="423.103" Loaded="Window_Loaded" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}">
    <Window.Resources>
        <CollectionViewSource x:Key="clGrupoViewSource" d:DesignSource="{d:DesignInstance {x:Type Entidades:clGrupo}, CreateList=True}"/>
        <CollectionViewSource x:Key="clServicioViewSource" d:DesignSource="{d:DesignInstance {x:Type Entidades:clServicio}, CreateList=True}"/>
        <Storyboard x:Key="OnUnloaded1">
        	<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="grid">
        		<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
        	</DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>

	<Grid x:Name="grid" RenderTransformOrigin="0.5,0.5">
		<Grid.RenderTransform>
			<TransformGroup>
				<ScaleTransform/>
				<SkewTransform/>
				<RotateTransform/>
				<TranslateTransform/>
			</TransformGroup>
		</Grid.RenderTransform>
		<Rectangle RadiusY="5.333" RadiusX="5.333" Margin="0,19,24,0">
			<Rectangle.Effect>
				<DropShadowEffect/>
			</Rectangle.Effect>
			<Rectangle.Fill>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="Black" Offset="1"/>
					<GradientStop Color="#FF4B1C1C"/>
				</LinearGradientBrush>
			</Rectangle.Fill>
		</Rectangle>


		<Label Content="Grupo:" Margin="32,50,0,185" Width="50" Height="25" HorizontalAlignment="Left" Foreground="#FFE6DEDE"/>
		<Label Content="Numero de cajas:" Height="25" Width="110" HorizontalAlignment="Left" Foreground="#FFE6DEDE" Margin="32,89,0,146"/>

		<ComboBox x:Name="cbxCantCajas" SelectedIndex="0" Margin="147,0,0,146" Width="50" Height="25" HorizontalAlignment="Left" VerticalAlignment="Bottom">
			<ComboBoxItem Content="1"/>
			<ComboBoxItem Content="2"/>
		</ComboBox>
		<Grid x:Name="gdGrupo" DataContext="{StaticResource clGrupoViewSource}">
			<ComboBox x:Name="clGrupoComboBox" Height="25" Width="140" Margin="147,58,0,177" HorizontalAlignment="Left" DisplayMemberPath="NombreGrupo" ItemsSource="{Binding}" SelectedValuePath="NombreGrupo">
				<ComboBox.ItemsPanel>
					<ItemsPanelTemplate>
						<VirtualizingStackPanel/>
					</ItemsPanelTemplate>
				</ComboBox.ItemsPanel>
			</ComboBox>


			<Button Height="30" Width="100" Margin="159,196,0,34" Content="Guardar" Click="Button_Click" HorizontalAlignment="Left"/>
		</Grid>
		<Controles:ucColorPicker x:Name="cbColor" HorizontalAlignment="Left" Margin="147,119,0,0" VerticalAlignment="Top"/>
		<Label Content="Color:" Width="110" HorizontalAlignment="Left" Foreground="#FFE6DEDE" Margin="32,119,0,101"/>
		<Button Content="x" HorizontalAlignment="Left" Margin="392,7,0,0" Click="Button_Click_1" VerticalAlignment="Top" Width="21" Style="{DynamicResource btnStyleClose}"/>
	</Grid>
</Window>
